const data = [
    {
        "image": {
            "src": "./images/xiaoxi/4.jpg",
            "alt": "",
            "width": "100px",
            "height": "100px",
            "style": {
                "paddingRight": "30px"
            }
        },
        "content": {
            "class": "neirong1",

            "textTop": {
                "class": "text-top",
                "title": "新浪新闻",
                "date": "11-13",
                "dateContainerClass": "right",
                "dateStyle": "flex-grow:1"
            },
            "textBottom": {
                "content": "住房交易税收新政！三部..."
            }
        }
    }
];
const neirongz = document.querySelector(".neirongz");

data.forEach(item => {
    const div = document.createElement("div");
    div.className='item';
    div.innerHTML = `
    
    <div class="${item.content.class}">
    <div class="${item.content.textTop.class}">
    ${item.content.textTop.title}
    <div class="${item.content.textTop.dateContainerClass}" style="${item.content.textTop.dateStyle}">${item.content.textTop.date}</div>
    </div>
    <div class="${item.content.textBottom.class}">${item.content.textBottom.content}</div>
    
    </div>
    `;
    neirongz.appendChild(div);
});



// [
//     {
//         "class": "neirong1",
//         "textTop": {
//             "title": "新浪新闻",
//             "date": "11-13",
//             "dateContainerClass": "right"
//         },
//         "textBottom": {
//             "content": "住房交易税收新政！三部..."
//         }
//     }
// ]